package com.sakura.system.service.impl.uploadimpl;


import com.sakura.system.dao.uploaddao.SrWebFilevideoListDAO;
import com.sakura.system.entity.upload.SrWebFilevideoList;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletRequest;
import javax.transaction.Transactional;
import java.util.Date;

@Service
@Transactional
@Slf4j
public class SrWebFilevideoListServiceImpl {
    @Autowired
    private SrWebFilevideoListDAO dao;

    @Autowired
    private HttpServletRequest request;

    public Integer save(Long id, SrWebFilevideoList obj){
//        Boolean b = dao.add(obj);
        obj.setIsdel(false);
        obj.setCreatetime(new Date());
        obj.setUpdatetime(new Date());
        Integer insert = dao.insert(obj);
        return insert;
    }
}
